
var i18n_base_path = "/static/"+'idealsee/i18n/';
var lan = "zh_CN";
var preloadImg = "/static/index/logo1.png?v=018ee";
var from_admin = document.location.search;
console.log(from_admin);
// anti-moth 20160509
if (window.location.search != ""){
    window.onbeforeunload = function (e){
        $.ajax({
            url: "/admin",
            type: "GET",
            async: false
        });
    }
}
var is = {};
is.options = {};
is.options.SITE_URL = 'http://' + '10.0.120.252';
is.options.has_3d_widget = 'False' == 'True';
is.options.has_red_packet = 'False' == 'True';
is.options.has_looker_widget = 'False' == 'True';
is.options.has_gold_game = 'False' == 'True';
is.options.editor_type = '1';
if ('True' == 'False'){
    is.options.permission = is.PERMISSION_READONLY || "PERMISSION_READONLY";
}
is.CONST = {
    resource_picture_id: '57ede05b883e28378ed504b4',
    root_path: '/static/new_version',
    logo_src: '/static/new_version/image/logo.png?v=d15ea',
    resource_type: 0,
    qr_url: '',
    media_src: 'http://yixun.develop.idealsee.net/media01/122563f8f8ccefd4c3c86a9bcca8ac80_jpeg-480.jpeg',
    first_come: 'False' == 'True',
    upload_url: '/web/comupload',
    back_url: 'http://localhost:8001/web/resource',
    resource_title: '视频类型',
    urls: {
        p: '/web/layer/test/indexInit/57ede05b883e28378ed504b4',
        page: '/web/creator/page/57ede05b883e28378ed504b4',
        pages: '/web/creator/pages/57ede05b883e28378ed504b4',
        widgets: '/web/creator/widgets/57ede05b883e28378ed504b4',
        timelines: '/web/creator/timelines/57ede05b883e28378ed504b4',
        widgetTimelines: '/web/creator/all/timelines/57ede05b883e28378ed504b4',
        page_timelines: '/web/page_timelines/57ede05b883e28378ed504b4',
        page_jump: '/web/resource/page/jump/57ede05b883e28378ed504b4',
        colorpicker: '/web/creator/colorpicker',
        gmap: '/web/creator/gmap_new',
        limit: '/web/creator/gmap_limit',
        richtext: '/web/creator/richtext',
        preview: '/web/creator/preview/57ede05b883e28378ed504b4',
        batch_widgets: '/web/creator/batch/widgets/57ede05b883e28378ed504b4',
        layer: '/web/layer/an/index/57ede05b883e28378ed504b4',
        categories: '/web/json/category',
        resources: '/web/json/resources',
        import_other_resource: '/web/creator/import_other_resource/57ede05b883e28378ed504b4',
        import_ar_resource: '/web/creator/import/template/57ede05b883e28378ed504b4',
        get_unity3d_state: '/web/creator/get_unity3d_state',
        permission: '/web/resource/permission',
        template_list: '/web/base/template/list',
        recognize: '/web/layer/recognize/57ede05b883e28378ed504b4'+from_admin,
        edit_resource: '/web/resource/form/57ede05b883e28378ed504b3',
        previewQRcode: '/web/creator/previewQRcode/57ede05b883e28378ed504b4'
    },
    font_size: '32pt',
    widget_init_dimensions: {
        width: 60,
        height: 60
    },
    editor_width: 480,
    editor_height: 720.0,
    res_picture_scale: 0.729483282675, // 480和主题图片原始图片宽度的比例
    view: {
        width: 4000,
        height: 4000
    },
    pages: [{"floating_screen": {"switch": 0, "md5": "", "select_floating": 0, "custom": 0}, "title": 1, "page_background": {"url": "http://yixun.develop.idealsee.net/media01/122563f8f8ccefd4c3c86a9bcca8ac80_jpeg-480.jpeg", "width": 480, "height": 720.0, "backgroundColor": "eaedee", "custom": 1}, "floating_pics": ["http://yixun.develop.idealsee.net/media01/afcd55bbe7e7fd66b17e368e613bffe6_png-240.png", "http://yixun.develop.idealsee.net/media01/04ca0580cca4ab028330d7b7d70e0c88_png-240.png", "http://yixun.develop.idealsee.net/media01/ef5ff316826bdd22c33f659ca77e032e_png-240.png"], "num": 5, "auto_turning": 0, "turning_delay": 1, "page_id": "57ede062883e28378ed504b6", "reference_line": {}}, {"floating_screen": {"switch": 0, "md5": "", "select_floating": 0, "custom": 0}, "title": 2, "page_background": {"url": "http://yixun.develop.idealsee.net/media01/122563f8f8ccefd4c3c86a9bcca8ac80_jpeg-480.jpeg", "width": 480, "height": 720.0, "backgroundColor": "eaedee", "custom": 1}, "floating_pics": ["http://yixun.develop.idealsee.net/media01/afcd55bbe7e7fd66b17e368e613bffe6_png-240.png", "http://yixun.develop.idealsee.net/media01/04ca0580cca4ab028330d7b7d70e0c88_png-240.png", "http://yixun.develop.idealsee.net/media01/ef5ff316826bdd22c33f659ca77e032e_png-240.png"], "num": 0, "auto_turning": 0, "turning_delay": 1, "page_id": "57ff47a61b291c097966f12c", "reference_line": {}}],
    templates: {
        elements: {
            sidebar_page: "/static/idealsee/js/new_editor/editor/template/pages/sidebar_page.html?v=0db15",
            property: "/static/idealsee/js/new_editor/editor/template/pages/property.html?v=6f9e7",
            text_property: "/static/idealsee/js/new_editor/editor/template/pages/text_property.html?v=07dda",
            graph_property: "/static/idealsee/js/new_editor/editor/template/pages/graph_property.html?v=3bc28",
            widget: "/static/idealsee/js/new_editor/editor/template/elements/widget.html",
            vector: "/static/idealsee/js/new_editor/editor/template/elements/vector.html",
            render_widget: "/static/idealsee/js/new_editor/editor/template/elements/render_widget.html?v=af027",
            render_vector: "/static/idealsee/js/new_editor/editor/template/elements/render_vector.html?v=52e3d",
            used_widget: "/static/idealsee/js/new_editor/editor/template/elements/used_widget.html?v=04d12",
            used_timelines: "/static/idealsee/js/new_editor/editor/template/elements/used_timelines.html?",
            used_timeline_tool: "/static/idealsee/js/new_editor/editor/template/elements/used_timeline_tool.html",
            widget_event: "/static/idealsee/js/new_editor/editor/template/elements/widget_event.html?v=69fda",
            widget_animation: "/static/idealsee/js/new_editor/editor/template/elements/widget_animation.html?v=9e36d",
            upload: "/static/idealsee/js/new_editor/editor/template/elements/upload.html?v=fec59",
// 动画属性
            an_property: "/static/idealsee/js/new_editor/editor/template/elements/an_property.html?v=c8585",
            single_upload: "/static/idealsee/js/new_editor/editor/template/elements/single_upload.html?v=1eb82",
            render_video: "/static/idealsee/js/new_editor/editor/template/elements/render_video.html",
            import_other_resource: "/static/idealsee/js/new_editor/editor/template/elements/import_other_resource.html?v=415a6",
            trigger: "/static/idealsee/js/new_editor/editor/template/elements/trigger.html?v=df13a",
            play_video: "/static/idealsee/js/new_editor/editor/template/elements/play_video.html?v=7340f",
            trigger_widgets_item: "/static/idealsee/js/new_editor/editor/template/elements/trigger_widgets_item.html?v=3879c",
// animation 动画编辑
            animation: "/static/idealsee/js/new_editor/editor/template/elements/animation.html?v=44bca",
            loop_property: "/static/idealsee/js/new_editor/editor/template/elements/loop_property.html?v=62843"
        },
        forms: {
            call_me: "/static/idealsee/js/new_editor/editor/template/forms/callme.html?v=8a056",
            website: "/static/idealsee/js/new_editor/editor/template/forms/website.html?v=23f3a",
            video: "/static/idealsee/js/new_editor/editor/template/forms/video.html?v=49081",
            music: "/static/idealsee/js/new_editor/editor/template/forms/music.html?v=9141c",
            picture: "/static/idealsee/js/new_editor/editor/template/forms/picture.html?v=f7e85",
            album: "/static/idealsee/js/new_editor/editor/template/forms/album.html?v=7e67f",
            geo: "/static/idealsee/js/new_editor/editor/template/forms/geo.html?v=3c57b",
            app_download: "/static/idealsee/js/new_editor/editor/template/forms/app_download.html?v=e8344",
            model_3d: "/static/idealsee/js/new_editor/editor/template/forms/model_3d.html?v=ce154",
            expand: "/static/idealsee/js/new_editor/editor/template/forms/expand.html?v=823a4",
            text: "/static/idealsee/js/new_editor/editor/template/forms/text.html?v=535aa",
            graph: "/static/idealsee/js/new_editor/editor/template/forms/graph.html?v=535aa",
            preview: "/static/idealsee/js/new_editor/editor/template/forms/preview.html?v=b527c" // 预览弹出层
        }
    }
};



var language = "";
if (lan == "ja_JP"){
language = 'ja-JP';
} else {
language = 'zh-CN';
}

$._ = $.i18n.prop;
$.i18n.properties({
name: 'Messages',
path: i18n_base_path,
mode: 'map',
cache: true, // 160219_缓存翻译文件
language: language
});

